Set up jupyter lab in wsl/wsl设置jupyter lab自动打开浏览器运行 |
您所在的位置:网站首页 › jupyter lab中文 › Set up jupyter lab in wsl/wsl设置jupyter lab自动打开浏览器运行 |
本文使用 Zhihu On VSCode 创作并发布 安装jupyter labpip install jupyterlab Generate jupyter_notebook_config.py file 生成jupyter_notebook_config.py文件jupyter notebook --generate-config生成的文件路径为~/.jupyter/jupyter_notebook_config.py,用 vscode 打开: code ~/.jupyter/jupyter_notebook_config.py 修改设置 将默认设置 c.NotebookApp.use_redirect_file = True 改为:c.NotebookApp.use_redirect_file = False注意删除本行开头的"#",使本行执行为浏览器设置alias,以edge为例 在~/.bashrc中添加:alias browser="/mnt/c/Program\ Files\ \(x86\)/Microsoft/Edge/Application/msedge.exe"这可以通过以下操作实现: cd ~ && sudo nano .bashrc然后在nano中增加一行alias。最后Ctrl+X退出,选择Y保存,然后Enter。修改.bashrc后需要执行以下命令: source .bashrc好了设置完成了,enjoy吧!!!cd 到工作路径或者安装了windows terminal的可以在Windows下打开工作文件夹,然后右键:Open in Windows Terminal,然后: jupyter lab |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |